package booksys.defer;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

//Dto数据传输对象
public class DeferDto {

    //与传输的数据一致才可解析成功
    private Integer bd_id;//延期编号
    private String st_name;//学生姓名
    private String bob_id;//借阅卡号
    private String bb_id;//图书编号
    private Date bd_extime;//借阅期限
    private Date bd_defer;//延期时间
    private Date bd_time;//提交时间
    private Integer bd_agree;// 0待处理 1 通过  2 否决


    public Integer getBd_id() {
        return bd_id;
    }

    public void setBd_id(Integer bd_id) {
        this.bd_id = bd_id;
    }

    public String getSt_name() {
        return st_name;
    }

    public void setSt_name(String st_name) {
        this.st_name = st_name;
    }

    public String getBob_id() {
        return bob_id;
    }

    public void setBob_id(String bob_id) {
        this.bob_id = bob_id;
    }

    public String getBb_id() {
        return bb_id;
    }

    public void setBb_id(String bb_id) {
        this.bb_id = bb_id;
    }

    @JSONField(format = "yyyy-MM-dd")//json字段格式，设置日期格式，重启服务端服务器生效
    public Date getBd_extime() {
        return bd_extime;
    }

    public void setBd_extime(Date bd_extime) {
        this.bd_extime = bd_extime;
    }

    @JSONField(format = "yyyy-MM-dd")
    public Date getBd_defer() {
        return bd_defer;
    }

    public void setBd_defer(Date bd_defer) {
        this.bd_defer = bd_defer;
    }

    @JSONField(format = "yyyy-MM-dd")
    public Date getBd_time() {
        return bd_time;
    }

    public void setBd_time(Date bd_time) {
        this.bd_time = bd_time;
    }

    public Integer getBd_agree() {
        return bd_agree;
    }

    public void setBd_agree(Integer bd_agree) {
        this.bd_agree = bd_agree;
    }

    @Override
    public String toString() {
        return "BdDto{" +
                "bd_id=" + bd_id +
                ", st_name='" + st_name + '\'' +
                ", bob_id='" + bob_id + '\'' +
                ", bb_id='" + bb_id + '\'' +
                ", bb_extime=" + bd_extime +
                ", bd_defer=" + bd_defer +
                ", bd_time=" + bd_time +
                ", bd_agree=" + bd_agree +
                '}';
    }
}

